package com.googlecode.afdbaccess.commandlinedemo.db;

import com.googlecode.afdbaccess.cache.Transaction;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerException;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerWrappedSqlException;

public class SimpleQuery {
  public static String doSimpleQuery(Transaction t) throws DataLayerWrappedSqlException, DataLayerException {
      return t.executeStringQuery("SELECT 'this is a string' value", null, 0); // The last parameter set to 0 milliseconds says that we do not accept cached/old data. This forces the query to be performed each time
  }
}
